package stackDemo;

public interface IStack {
    //添加元素
    void push(int n) throws Exception;
    //删除
    int pop() throws Exception;
    //获得栈顶元素
    int peek() throws Exception;
    //获得有效个数
    int size();
    //判断是否为空
    boolean empty();
    //判断是否满了
    boolean full();
}
